package com.relytosoft.mizar.media.system.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 关联第三方信息
 *
 * @Author SunLi
 * @Date: 2022/4/8 9:26
 * @Version 1.0
 */

@TableName("SYS_RELATED_PLATFORM")
@ApiModel("SysRelatedPlatform")
public class SysRelatedPlatform extends BaseEntity {

    private static final long serialVersionUID = -8991590969039774278L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value="ID", type= IdType.AUTO)
    private Integer id;

    /**
     * 类型;1区域
     */
    @ApiModelProperty(value = "类型;1区域", required = true)
    @TableField("TYPE")
    @NotNull(message = "类型不能为空")
    private Integer type;

    /**
     * 系统ID
     */
    @ApiModelProperty(value = "系统ID", required = true)
    @TableField("OWN_ID")
    @NotNull(message = "系统ID不能为空")
    private Integer ownId;

    /**
     * 第三方平台
     */
    @ApiModelProperty(value = "第三方平台")
    @TableField("PLATFORM_NAME")
    private String platformName;

    /**
     * 第三方ID
     */
    @ApiModelProperty(value = "第三方ID")
    @TableField("PLATFORM_ID")
    private String platformId;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    /**
     * 第三方平台是否同步;1已同步 0未同步
     */
    @ApiModelProperty(value = "第三方平台是否同步;1已同步 0未同步", required = true)
    @TableField("IS_SYNC")
    @NotNull(message = "第三方平台是否同步不能为空")
    private Integer isSync;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @TableField("STATUS")
    @NotNull(message = "状态不能为空")
    private Integer status;

    /**
     * 获得主键ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置主键ID
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * 获得类型;1区域
     */
    public Integer getType(){
        return this.type;
    }
    /**
     * 设置类型;1区域
     */
    public void setType(Integer type){
        this.type = type;
    }

    /**
     * 获得系统ID
     */
    public Integer getOwnId(){
        return this.ownId;
    }
    /**
     * 设置系统ID
     */
    public void setOwnId(Integer ownId){
        this.ownId = ownId;
    }

    /**
     * 获得第三方平台
     */
    public String getPlatformName(){
        return this.platformName;
    }
    /**
     * 设置第三方平台
     */
    public void setPlatformName(String platformName){
        this.platformName = platformName;
    }

    /**
     * 获得第三方ID
     */
    public String getPlatformId(){
        return this.platformId;
    }
    /**
     * 设置第三方ID
     */
    public void setPlatformId(String platformId){
        this.platformId = platformId;
    }

    /**
     * 获得备注
     */
    public String getRemark(){
        return this.remark;
    }
    /**
     * 设置备注
     */
    public void setRemark(String remark){
        this.remark = remark;
    }

    /**
     * 获得第三方平台是否同步;1已同步 0未同步
     */
    public Integer getIsSync(){
        return this.isSync;
    }
    /**
     * 设置第三方平台是否同步;1已同步 0未同步
     */
    public void setIsSync(Integer isSync){
        this.isSync = isSync;
    }

    /**
     * 获得状态
     */
    public Integer getStatus(){
        return this.status;
    }
    /**
     * 设置状态
     */
    public void setStatus(Integer status){
        this.status = status;
    }

    @Override
    public String toString() {
        return "SysRelatedPlatform{id=" + id +
                ",type=" + type +
                ",ownId=" + ownId +
                ",platformName=" + platformName +
                ",platformId=" + platformId +
                ",remark=" + remark +
                ",isSync=" + isSync +
                ",status=" + status +
                ",createdId=" + createdId +
                ",createdBy=" + createdBy +
                ",createdTime=" + createdTime +
                ",updatedId=" + updatedId +
                ",updatedBy=" + updatedBy +
                ",updatedTime=" + updatedTime +
                "}";
    }
}
